//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package test.test.十进制转换为字符串表示的二进制;

public class demo {
    public demo() {
    }

    public static void main(String[] args) {
        System.out.println(toBinaryString(100));
    }

    public static String toBinaryString(int n) {
        StringBuilder sb;
        for(sb = new StringBuilder(); n > 0; n /= 2) {
            sb.insert(0, n % 2);
        }

        return sb.toString();
    }
}
